<extend name="Public/base"/>
<block name="sidebar"></block>
<block name="style">
  <style>
body { padding: 0 }
</style>
</block>
<block name="body">
<!-- 主体 -->
<div id="indexMain" class="index-main"> 
  <!-- 插件块 -->
  <div class="container-span" style="margin-top:100px;">
    <div class="span2">
      <div class="columns-mod">
        <div class="hd cf">
          <h5>工作计划</h5>
          <div class="title-opt"> </div>
        </div>
        <div class="bd">
          <div class="sys-info">
          	<notempty name="_list" id="vo">
            <table>
              <tbody>
              <volist name="_list" id="vo">
                <tr>
                  <td><span style="color:#999; float:right">提醒时间：{$vo.reminder_time|date="Y-m-d H:i",###}</span><a href="{:U('Task/view', 'id='. $vo['id'])}" <eq name="vo.is_view" value="1">style="color:#F00; font-weight:700" </eq>>{$vo.content|msubstr=0,56}</a></td>
                </tr>
              </volist>
             
              </tbody>
            </table>
            <else />
            暂无工作计划
            </notempty>
          </div>
        </div>
      </div>
    </div>
    <div class="span2">
      <div class="columns-mod">
        <div class="hd cf">
          <h5>任务目标完成进度</h5>
          <div class="title-opt"></div>
        </div>
        <div class="bd">
          <div class="sys-info">
            <table>
              <tbody>
               <tr>
                  <th></th>
                  <td><h4>最近一次目标任务</h4></td>
                </tr>
                <tr>
                  <th><h4>总目标</h4></th>
                  <td style="color:#F00; font-size:18px; font-weight:700">{$objInfo.task}元</td>
                </tr>
                <empty name="yw">
                 <tr>
                  <th><h4>总完成进度</h4></th>
                  <td style="color:#393; font-size:18px; font-weight:700">{$sum}元</td>
                </tr>
                
                <else />
                   <tr>
                  <th><h4>我的业绩</h4></th>
                  <td style="color:#393; font-size:18px; font-weight:700">{$sum|default="0"}元</td>
                </tr>
                
                </empty>

                <tr>
                  <th></th>
                  <td><a href="{:U('Objective/view', 'id='.$objInfo['id'])}">查看详情</a></td>
                </tr>
           
           
              </tbody>
            </table>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>
</block>
<block name="script"> 
  <script type="text/javascript">
    /* 插件块关闭操作 */
    $(".title-opt .wm-slide").each(function(){
        $(this).click(function(){
            $(this).closest(".columns-mod").find(".bd").toggle();
            $(this).find("i").toggleClass("mod-up");
        });
    })
    $(function(){
        // $('#main').attr({'id': 'indexMain','class': 'index-main'});
        $('.copyright').html('<div class="copyright"> ©CRM管理平台</div>');
        $('.sidebar').remove();
    })
</script> 
</block>
